{% extends "djangollery/root.html" %}
{% load i18n %}

{% block title %}
	{% trans "Latest Photos" %}
{% endblock %}

{% block dochead %}
<link rel="stylesheet" href="/static/djangollery/css/basic.css" type="text/css" />
<link rel="stylesheet" href="/static/djangollery/css/djangollery.css" type="text/css" />
{% endblock %}

{% block content %}

<h1>{% trans "Latest Photos" %}</h1>
<div id="container">
{% if latest %}
    {% for photo in latest %}
    <div class="gallery-photo">
        <a href="{{ photo.get_absolute_url }}"><img src="{{ photo.get_thumbnail_url }}" alt="{{ photo.title }}"/></a>
    </div>
    {% endfor %}
{% else %}
	<p>{% trans "No photos were found." %}</p>
{% endif %}
<p><a href="{% url pl-photo-list 1 %}">{% trans "View all photographs" %}</a></p>
</div>
{% endblock %}
